package com.jimmy.medical.job;

import com.jimmy.medical.service.IFlowOrderService;
import com.jimmy.medical.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import java.io.IOException;

@Component
public class Job {

	@Autowired
	private IUserService userService;
	@Autowired
	@Qualifier("flowOrderService")
	private IFlowOrderService flowOrderService;

	/**
	*  更新候诊室的订单数、退单数、超时数
	 * @throws IOException 
	* */
	@Scheduled(cron="0 0 0 * * ?")
	public void countUserStat() throws IOException{

	}
}